<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('index')}">{$title}</a></li>
			<li><a href="{:U('add')}">添加</a></li>
			<li><a href="{:U('flush')}" class='ajax-get confirm'>更新缓存</a></li>
		</ul>

		<form class="js-ajax-form" method="post">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="70%">配置信息</th>
						<th width="10%">状态</th>
						<th width="30%">操作</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td>是否开启爬虫</td>
						<td>{$crawl_status.info}</td>
						<td>
							<eq name='list.global_switch' value='true'>
								<a href="{:U('setconfig',array('key'=>'global_switch','val'=>'false'))}" class='ajax-get confirm'>暂时中断</a>
								<else />
								<a href="{:U('setconfig',array('key'=>'global_switch','val'=>'true'))}" class='ajax-get confirm'>继续</a>
							</eq>|
							<eq name='crawl_status.code' value='1'>
								<a href="{:U('crawl_switch',['val'=>0])}" class='ajax-get confirm'>彻底退出</a>
								<else />
								<a href="{:U('crawl_switch',['val'=>1])}" class='ajax-get confirm'>开启</a>
							</eq>
							
						</td>
					</tr>
					<tr>
						<td>是否开启邮箱发送</td>
						<td></td>
						<td>
							<eq name='list.email_switch' value='true'>
								<a href="{:U('setconfig',array('key'=>'email_switch','val'=>'false'))}" class='ajax-get confirm'>关闭</a>
								<else />
								<a href="{:U('setconfig',array('key'=>'email_switch','val'=>'true'))}" class='ajax-get confirm'>开启</a>
							</eq>
						</td>
					</tr>
				</tbody>
				
			</table>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/content_addtop.js?t={:time()}"></script>
</body>
</html>s